-- GENERATED SPELL FOR [Murloc Minor Tidecaller] --


function spell0_548(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(9672,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_548', 7000, 1)
end

function spell1_548(pUnit, Event) --@Healing Wave,Heal--
pUnit:FullCastSpellOnTarget(547,pUnit)
pUnit:RegisterEvent('Sorts_548', 2500, 1)
end

function Sorts_548(pUnit, Event)
local choix_sorts_548 = math.random(0, 1)
if choix_sorts_548 == 0 then
pUnit:RegisterEvent('spell0_548', 1, 1)
end
if choix_sorts_548 == 1 then
pUnit:RegisterEvent('spell1_548', 1, 1)
end
end

function mob548_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_548', math.random(1500, 3000), 1)
end

function mob548_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob548_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob548_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(548, 1, 'mob548_Action')
RegisterUnitEvent(548, 2, 'mob548_Leave')
RegisterUnitEvent(548, 3, 'mob548_Kill')
RegisterUnitEvent(548, 4, 'mob548_Die')
